import Vue from "vue";
import Vuex from "vuex";
import getters from "@/store/getters"; //规范变量的文件
import user from "@/store/modules/user"; //登录
import permission from "@/store/modules/permission"; //路由

Vue.use(Vuex);

/**
 * 创建vuex的store对象
 *
 */
const store = new Vuex.Store({
	getters,
	modules: {
		user,
		permission,
	},
});

export default store;
